package DBHelper;

import java.math.BigInteger;
import java.sql.ResultSet;
import java.sql.SQLException;

public class ListValue {
    private BigInteger listValueId;
    private String value;
    
    public ListValue() {}
    
    public ListValue(BigInteger list_valie_id) throws SQLException {
        String query = "select * from list_values where list_value_id = "+list_valie_id;
        ResultSet rs = DBHelper.executeQuery(query);
        while (rs.next()) {
            try {
                listValueId = new BigInteger(rs.getString("list_value_id"));
                value = rs.getString("value");
            }
            catch(Exception e) {e.printStackTrace();}
        }
    }
    
    public BigInteger getListValueId() {
        return listValueId;
    }
    public String getValue() {
        return value;
    }
}
